package com.xinghuo.building

import android.app.Application
import com.product.xlogger.XLogger
import dagger.hilt.android.HiltAndroidApp
import kotlin.properties.Delegates


/**
 * Created by chendaning
 */
@HiltAndroidApp
open class App : Application(){
    companion object {
        private var instance: App by Delegates.notNull()
        fun instance() = instance
    }

    override fun onCreate() {
        super.onCreate()
        instance = this

        /**
         * log日志初始化
         */
        XLogger.getInstance().showLog(true).showStackTrace(true)
    }
}
